import cn.yes.dyx.User;
import org.apache.commons.lang3.RandomStringUtils;

import javax.jws.soap.SOAPBinding;
import java.lang.reflect.Method;
import java.sql.SQLOutput;

public class dengyuxin {
    public static void main(String[] args)throws Exception{
       // String s = RandomStringUtils.randomAlphabetic(7);
       // String n = RandomStringUtils.randomAlphabetic(2);
       //  System.out.println(s);
       // System.out.println(n);
        User u=new User();
        u.setName("dyx");
        System.out.println(u.getName());
        u.setAge("20");
        System.out.println(u.getAge());
        Class<?>UU=Class.forName("cn.yes.dyx.User");
        Object o = UU.newInstance();
        Method setName = UU.getMethod("setName",String.class);
        setName.invoke(o,"ZZH");
        Method getName = UU.getMethod("getname");
        Object result = getName.invoke(o);
        System.out.println(result);
    }
}
